<?php

    include '../modelo/Conexion.php';

    $claseConexion = new Conexion();
    $conexion = $claseConexion->getConexion();
    
    $query = "select TipoCat categ
              from categoria";
        
    $accion = mysql_query($query);

    echo "</br>";
    echo "<table>";
    echo "<tr>";
    echo "<td>";
    echo "<select id='categoria'>";
    
    while($resultado = mysql_fetch_assoc($accion)){
        echo "  <option>".$resultado['categ']."</option>";        
    }

    $conexion = $claseConexion->closeConexion();
    
    echo "</select>";
    echo "</td>";
    echo "<td>";
    echo "<button type='button' class='btn' onclick='listado_cat()'>Default</button>";
    echo "</td>";
    echo "</tr>";
    echo "</table>";

?>